{% extends "base.html" %}
{% block content %}

    <div class="container">
        <div class="panel panel-primary">
            <div class="panel-heading">选择部门</div>
            <div class="panel-body">

                <form method="POST">
                    {% csrf_token %}
                    {% for department in departments %}
                        <button class='btn btn-success' type="submit" name="department" value="{{ department }}">
                            {{ department }}
                        </button>
                    {% endfor %}
                </form>
            </div>
        </div>

    </div>
{% endblock %}